/**产品bom */
export const ProductBomHerders = {
  type: 101,
  herders: [
    { code: 'bomCode', name: 'BOM编码' },
    { code: 'bomName', name: 'BOM名称' },
    { code: 'management.number', name: '产品编码' },
    { code: 'management.name', name: '产品名称' },
    { code: 'management.spec', name: '规格型号' },
    { code: 'management.spec', name: '规格型号' },
    { code: 'management.unitData.name', name: '基本单位', width: 120 },
    { name: '状态', fixed: 'right', width: 100 },
  ],
};

/** 工序  */
export const workSerialHerders = {
  type: 102,
  herders: [
    { code: 'processCode', name: '工序编码' },
    { code: 'processName', name: '工序名称' },
    { code: 'remark', name: '工序说明', width: 250 },
    { code: 'productionMethod', name: '生产方式', width: 120 },
    { name: '工作方式', width: 120 },
    { name: '工序类别' },
    { name: '是否报工', width: 100 },
    { name: '状态', fixed: 'right', width: 100 },
  ],
};
/** 工序组  */
export const WorkSerialGroupHerders = {
  type: 107,
  herders: [
    { code: 'processCode', name: '工序组编码' },
    { code: 'processName', name: '工序组名称' },
    { name: '工序列', width: 300 },
    { code: 'productionMethod', name: '生产方式', width: 100 },
    { name: '状态', fixed: 'right', width: 100 },
  ],
};

/** 车间  */
export const WorkshopHerders = {
  type: 103,
  herders: [
    { code: 'code', name: '车间编码' },
    { code: 'name', name: '车间名称' },
    { code: 'sectionName', name: '上级区域' },
    { code: 'chargeName', name: '负责人', width: 120 },
    { code: 'remark', name: '备注' },
    { code: 'foundName', name: '创建人', width: 120 },
    { name: '状态', fixed: 'right', width: 100 },
  ],
};

/** 工位  */
export const StationHerders = {
  type: 104,
  herders: [
    { code: 'stationCode', name: '工位编码' },
    { code: 'stationName', name: '工位名称' },
    { code: 'workShopData.name', name: '所属车间' },
    { code: 'remark', name: '备注' },
    { code: 'foundName', name: '创建人', width: 120 },
    { name: '状态', fixed: 'right', width: 100 },
  ],
};

/** 产线  */
export const ProductionLineHerders = {
  type: 105,
  herders: [
    { code: 'lineCode', name: '产线编码' },
    { code: 'lineName', name: '产线名称' },
    { code: 'workshopName', name: '所属车间' },
    { code: 'chargeName', name: '负责人', width: 120 },
    { code: 'remark', name: '备注' },
    { code: 'foundName', name: '创建人', width: 120 },
    { name: '状态', fixed: 'right', width: 80 },
  ],
};

/** 生产bom  */
export const ProduceBomHerders = {
  type: 106,
  herders: [
    { code: 'bomCode', name: 'BOM编码' },
    { code: 'bomName', name: 'BOM名称' },
    { code: 'management.number', name: '产品编码' },
    { code: 'management.name', name: '产品名称' },
    { code: 'management.spec', name: '规格型号' },
    { code: 'management.unitData.name', name: '基本单位', width: 120 },
    { name: '状态', fixed: 'right', width: 80 },
  ],
};

/** 工艺路线  */
export const ProcessRouteHerders = {
  type: 108,
  herders: [
    { code: 'routerCode', name: '工艺路线编码' },
    { code: 'routerName', name: '工艺路线名称' },
    { code: 'routerInstructions', name: '工艺路线说明' },
    { name: '工序/工序组列表', width: 300 },
    { name: '状态', fixed: 'right', width: 80 },
  ],
};

/** 产品工艺路线  */
export const ProductProcessRouteHerders = {
  type: 108,
  herders: [
    { code: 'routerName', name: '版本号' },
    { code: 'productCode', name: '产品编码' },
    { code: 'productName', name: '产品名称' },
    { code: 'spec', name: '规格型号' },
  ],
};

/** 工单表头  */
export const WorkOrderHerders = {
  type: 109,
  herders: [
    { code: 'workCode', name: '工单编号' },
    { code: 'bomName', name: '制造BOM' },
    { code: 'materialName', name: '产品名称' },
    { code: 'materialNumber', name: '产品编号' },
    { code: 'materialSpec', name: '规格型号' },
    { code: 'materialUnit', name: '基本单位' },
    // { code: 'customerName', name: '客户名称' },
    { name: '紧急等级' }, //emergencyLevel
    { name: '结束时间' }, //endDate
    { code: 'foundName', name: '创建人' },
    { name: '物料属性' }, //materialAttribute
    { code: 'produceNumber', name: '工单数量' }, //materialAttribute
    { code: 'orderNumber', name: '生产订单编号' },
    { code: 'plannerName', name: '负责人名称' },
    // { code: 'processRouteName', name: '工艺路线' },
    // { code: 'salesName', name: '销售名称' },
    { name: '开始时间' }, //startDate
    // { code: '状态', name: '开始时间' }, //status
    // { code: 'routerName', name: '订单类型' },
    // { code: 'productName', name: '关联销售订单编号' },
    // { code: 'routerName', name: '销售订单数量' },
    // { code: 'productName', name: '计划生产数量' },
    // { code: 'startDate', name: '计划开始日期' },
    // { code: 'endDate', name: '计划完工日期' },
    // { code: 'routerName', name: '交货日期' },
    // { code: 'productName', name: '备注' },
    // { code: 'status', name: '订单状态' },
  ],
};

/** 计划表头  */
export const OrderPlanningHerders = {
  type: 110,
  herders: [
    { code: 'planCode', name: '计划编号' },
    { code: 'workOrderCode', name: '生产订单编号' },
    { code: 'materialName', name: '产品名称' },
    { code: 'materialNumber', name: '产品编号' },
    { code: 'materialSpec', name: '规格型号' },
    { name: '计划数量' },
    { code: 'produceNumber', name: '工单数量' },
    { name: '物料属性', width: 120 },
  ],
};

/**车间计划 */
export const PlanWorkShopHerders = {
  type: 111,
  herders: [
    { code: 'processName', name: '工序名称', width: 180 },
    { code: 'workShopName', name: '所属车间', width: 180 },
    { code: 'materialNumber', name: '产品编码', width: 180 },
    { code: 'materialName', name: '产品名称', width: 180 },
    { code: 'materialSpec', name: '型号规格', width: 180 },
    { code: 'produceNumber', name: '工单数量', width: 180 },
    { code: 'capacity', name: '标准日产能', width: 180 },
    { name: '车间计划数量', width: 180 },
  ],
};

export const ProductionSchedulingHerders = {
  type: 112,
  herders: [
    { code: 'schedulingNumber', name: '排程订单号', width: 180 },
    { code: 'workShopCode', name: '关联计划单号', width: 180 },
    // { code: 'capacity', name: '关联任务单号', width: 180 },
    { code: 'produceCode', name: '产品编码', width: 180 },
    { code: 'produceName', name: '产品名称', width: 180 },
    { code: 'spec', name: '规格型号', width: 180 },
    { code: 'unit', name: '生产单位', width: 180 },
    { code: 'workShopPlanName', name: '计划数量', width: 180 },
    { code: 'scheduledQuantity', name: '已排程数量', width: 180 },
    { code: 'completedQuantity', name: '已完工数量', width: 180 },
    { name: '紧急等级', width: 180 },
    { code: 'processGroupName', name: '工序名称', width: 180 },
    { name: '投入物料', width: 250 },
    { code: 'outputProductName', name: '产出产品', width: 180 },
    { code: 'workShopName', name: '所属车间', width: 180 },
    // { code: 'capacity', name: '计划开工时间', width: 180 },
    // { code: 'capacity', name: '生产主管', width: 180 },
    // { code: 'capacity', name: '计划员', width: 180 },
    // { code: 'capacity', name: '可用资源', width: 180 },
  ],
};
